<!--组件-公告-->
<template>
  <div class="row acenter">

    <LImage class="img-horn" :src="Config.img('v2_gonggao.png')"></LImage>
    <text class="font24 text2 text" @click="noticeClick(notice.messageId)">{{notice.title}}</text>

    <LImage class="img-all" :src="Config.img('jiantou_lan.png')" @click="noticeClick(notice.messageId)"></LImage>
  </div>
</template>

<style src="@/_css/style.css" ></style>
<style scoped>
.text{
  flex: 1;
  lines:1;
  text-overflow: ellipsis;
}
.img-horn{
  width:28px;
  height:28px;
  margin-right: 20px;
}
.img-all{
  width:20px;
  height:20px;
  margin-left: 20px;
}
</style>

<script>
//功能
import jconfig from "@/_js/config"; 
export default {


  props:{
    notice:{
      type:Object,
      default:undefined,
    }
  },
  
  data() {
    return {
      Config:jconfig,
    };
  },

  created(){

  },

  methods:{
    /********************************** 点击触发*/
    //公告点击
    noticeClick(messageId){
      this.$emit("click", messageId);
    },
  }
}
</script>
